package com.neu.af.dataFilter.service;

import com.github.pagehelper.PageInfo;
import com.neu.af.dataFilter.entity.Rule;

import java.util.List;
import java.util.Map;

public interface RuleService {

    int insert(Rule rule);

    int update(Rule rule);

    int delete(String id);

    Rule getById(String id);

    List<Rule> getAll();

    List<Rule> getAllByFilter(Map<String, Object> map);

    int deleteByContains(String contains);

    Rule getByContains(String contains);

    List<Rule> getByContainsLike(String contains);

    //pagenum   pagenow  ,pagesize
    PageInfo<Rule> getAllByFilter(Integer pageNum, Integer pageSize);

    PageInfo<Rule> getAllByFilter(Integer pageNum, Integer pageSize, Map<String, Object> map);

}
